CC=gcc
CFLAGS= -Wall -g
LIBS= -lexpat -lc
LDFLAGS= $(LIBS)
OBJS= LesserElements.o Vertical.o Horizontal.o Speed.o Direction.o BulletRef.o FireRef.o ActionRef.o Vanish.o Accel.o ChangeSpeed.o ChangeDirection.o Repeat.o Wait.o Bullet.o Fire.o Action.o BulletML.o main.o

.c.o:
	$(CC) $(CFLAGS) -c $<

all: parser

parser: $(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS)

clean:
	rm *.o; rm parser